package com.nmgsr.nettools.util;

import android.view.Gravity;
import android.widget.Toast;

import com.nmgsr.nettools.base.BaseApplication;


public class ToastUtil {

    public static void showToast(int res) {
        String message = BaseApplication.getAppContext().getString(res);
        Toast toast = Toast.makeText(BaseApplication.getAppContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.TOP, 0, 32);
        toast.show();
    }

    public static void showToast(String message) {
        Toast toast = Toast.makeText(BaseApplication.getAppContext(), message, Toast.LENGTH_SHORT);
        toast.setGravity(Gravity.TOP, 0, 32);
        toast.show();
    }
}
